package cn.chenyumeng.blog.entity;

import java.util.Date;

/**
 * 博客评论实体类
 *
 * @program: blog->Comment
 * @description: 博客评论实体类
 * @author: cg
 * @create: 2020-07-25 11:58
 **/
public class Comment {

    private Long id;
    /**
     * 评论人昵称
     */
    private String nickname;
    /**
     * 评论人邮箱
     */
    private String email;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 评论人头像
     */
    private String avatar;
    /**
     * 评论人个人网站
     */
    private String site;
    /**
     * 无需回复通知为null，需要回复通知为评论所在网站
     */
    private String notice;
    /**
     * 评论所属的博客
     */
    private Long blogId;
    /**
     * 父评论
     */
    private Long parentCommentId;
    /**
     * 创建时间
     */
    private Date createTime;

    public Comment() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public String getNotice() {
        return notice;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getBlog() {
        return blogId;
    }

    public void setBlog(Long blogId) {
        this.blogId = blogId;
    }

    public Long getParentCommentId() {
        return parentCommentId;
    }

    public void setParentCommentId(Long parentCommentId) {
        this.parentCommentId = parentCommentId;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", nickname='" + nickname + '\'' +
                ", email='" + email + '\'' +
                ", content='" + content + '\'' +
                ", avatar='" + avatar + '\'' +
                ", site='" + site + '\'' +
                ", notice='" + notice + '\'' +
                ", blogId=" + blogId +
                ", parentCommentId=" + parentCommentId +
                ", createTime=" + createTime +
                '}';
    }
}
